package com.ruoyi.consume.mapper;

import java.util.List;

import com.ruoyi.consume.domain.RegulatorApplyTemporaryCon;

/**
 * 调节剂临时领用Mapper接口
 *
 * @author ruoyi
 * @date 2021-07-27
 */
public interface RegulatorApplyTemporaryConMapper
{
    /**
     * 查询调节剂临时领用
     *
     * @param regulatorApplyTemporaryId 调节剂临时领用ID
     * @return 调节剂临时领用
     */
    public RegulatorApplyTemporaryCon selectRegulatorApplyTemporaryById(Long regulatorApplyTemporaryId);

    /**
     * 查询调节剂临时领用列表
     *
     * @param regulatorApplyTemporaryCon 调节剂临时领用
     * @return 调节剂临时领用集合
     */
    public List<RegulatorApplyTemporaryCon> selectRegulatorApplyTemporaryList(RegulatorApplyTemporaryCon regulatorApplyTemporaryCon);

    /**
     * 新增调节剂临时领用
     *
     * @param regulatorApplyTemporaryCon 调节剂临时领用
     * @return 结果
     */
    public int insertRegulatorApplyTemporary(RegulatorApplyTemporaryCon regulatorApplyTemporaryCon);

    /**
     * 修改调节剂临时领用
     *
     * @param regulatorApplyTemporaryCon 调节剂临时领用
     * @return 结果
     */
    public int updateRegulatorApplyTemporary(RegulatorApplyTemporaryCon regulatorApplyTemporaryCon);

    /**
     * 删除调节剂临时领用
     *
     * @param regulatorApplyTemporaryId 调节剂临时领用ID
     * @return 结果
     */
    public int deleteRegulatorApplyTemporaryById(Long regulatorApplyTemporaryId);

    /**
     * 批量删除调节剂临时领用
     *
     * @param regulatorApplyTemporaryIds 需要删除的数据ID
     * @return 结果
     */
    public int deleteRegulatorApplyTemporaryByIds(Long[] regulatorApplyTemporaryIds);

    /**
     * 更新库存量表
     *
     * @param regulatorApplyTemporaryCon 调节剂临时领用
     * @return 结果
     */
    public int updateAmount(RegulatorApplyTemporaryCon regulatorApplyTemporaryCon);

    /**
     * 更新领用状态
     *
     * @param regulatorApplyTemporaryId 调节剂临时领用ID
     * @return 结果
     */
    public int updateConsumeStatus(Long regulatorApplyTemporaryId);

    /**
     * 退回操作
     *
     * @param regulatorApplyTemporaryId 调节剂临时领用ID
     * @return 结果
     */
    public int updateApprovalStatus(Long regulatorApplyTemporaryId);
}
